<template>
  <div>
    <tabs :tabs="tabLists" class="tab" :handleClick="handleClick"></tabs>
    <router-view></router-view>
  </div>
</template>

<script>
import Tabs from "@/components/tabs/tabs";

export default {
  data() {
    return {
      tabLists: [
        { label: "商家积分审核", name: "business-review" },
        { label: "会员积分审核", name: "member-review" },
      ],
    };
  },
  methods: {
    handleClick(tab, event) {
      const path = this.tabLists[tab.index].name;
      console.log(path,'path');
      this.$router.push({
        path: path,
      });
    },
  },
  components: {
    Tabs,
  },
    name: "score-review"
};
</script>

<style scoped>
</style>
